﻿using Newtonsoft.Json;
using SqlSugar;

namespace AdminBase.Model.Entitys
{
    /// <summary>
    /// 角色表
    /// </summary>
    public class Roles : EntityCommon
    {
        /// <summary>
        /// 名称
        /// </summary>
        [JsonProperty("name")]
        [SugarColumn(IsNullable = false)]
        public string? Name { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [JsonProperty("description")]
        public string? Description { get; set; }

        /// <summary>
        /// 是否启用（0=未启用，1=启用）
        /// </summary>
        [JsonProperty("isEnable")]
        public bool IsEnable { get; set; }
    }
}
